#

def feibo(n):
    list = [1, 1]
    a, b = 1, 1

    if n == 1:
        return [1]
    elif n ==2:
        return [1,1]
    elif n > 2:
        for i in range(2,n):
            c = a+b
            a, b = b, a+b
            list.append(c)
    print(list)

feibo(10)